package com.hdu.clj.fitness

import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper

class talkDatabase(val context: Context, name:String, version:Int): SQLiteOpenHelper(context,name,null,version) {

    private val dayNumBook = "create table Talk (" +
            "id integer primary key autoincrement," +
            "content text)"

    override fun onCreate(db: SQLiteDatabase) {
        db.execSQL(dayNumBook)
    }

    override fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, newVersion: Int) {

    }
}